write logic

[计] 写入逻辑